/*
** xselect.c for zappy in /home/morgan_t/Documents/svn-for-my-proj/zappy/common
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Mon Jul  2 13:18:34 2012 thomas morgant
** Last update Thu Jul  5 12:30:33 2012 thomas morgant
*/

#include "common.h"

int	xselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
{
  int	r;

  if ((r = select(nfds, readfds, writefds, exceptfds, timeout)) == -1)
    {
      perror("select");
      exit(EXIT_FAILURE);
    }
  return (r);
}
